package ABC;

import java.util.Arrays;

public class Z031314 {
    public static void main(String[] args) {
        int[] shu={1, 2, 2, 4, 5};
        for (int i=0;i<shu.length;i++){
            for (int a=0;a<shu.length-1-i;a++){
                int b=0;
                b=shu[a+1];
                shu[a+1]=shu[a];
                shu[a]=b;
            }
        }
        System.out.println(Arrays.toString(shu));
    }
}
